-- GENERATED SPELL FOR [Brokentoe] --


function spell0_18398(pUnit, Event) --@Hoof Stomp,Self--
pUnit:FullCastSpellOnTarget(32023,pUnit)
pUnit:RegisterEvent('Sorts_18398', 3000, 1)
end

function Sorts_18398(pUnit, Event)
local choix_sorts_18398 = math.random(0, 0)
if choix_sorts_18398 == 0 then
pUnit:RegisterEvent('spell0_18398', 1, 1)
end
end

function mob18398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18398', math.random(1500, 3000), 1)
end

function mob18398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18398, 1, 'mob18398_Action')
RegisterUnitEvent(18398, 2, 'mob18398_Leave')
RegisterUnitEvent(18398, 3, 'mob18398_Kill')
RegisterUnitEvent(18398, 4, 'mob18398_Die')
